home *** CD-ROM | disk | FTP | other *** search
- Path: softsite.co.at!wsog
- Date: 15 Feb 1996 09:12:00 +0100
- From: wsog@softsite.co.at (Walter Sommergruber)
- Newsgroups: comp.lang.c
- Message-ID: <62ts6PjMnTB@softsite.co.at>
- References: <DMoyuG.CD4@world.std.com>
- Subject: Re: c++ and readability
- X-Newsreader: XP v3.02
- X-Charset: ISO-8859-1
- Organization: Sommergruber Software & Dienstleistungen
-
- bender (bender@world.std.com) wrote on 13.02.96
- about "c++ and readability":
-
- > Its disappointing to me that us C programmers haven't yet developed a
- > standard, readable style of writing code.
-
- > Now I ask you which is more readable, this:
- [snip]
- > This is chaos, how do you know
- [snip]
-
- I would prefer a third style: my style.
-
- 4 programmers = at least 5 styles
- Welcome to reality :D
-
-
- As nearly everyone contributed his style to the thread, here is mine:
-
- /* blank line here */
- if (startImage > endimage)
- {
- for (int i = startImage; i >= endImage; i--)
- result.addElement(new URL(imageSource, "T"+i+".gif"));
- }
- else if (sounds != null)
- {
- const <type> badURL = fetchSounds(sounds);
-
- if (badURL != null)
- {
- loadError(badURL, soundLabel);
- return;
- }
- }
-
- /* blank line here */
-
- Does anyon need a theoretically approach why my style is the best ?
- Kids. ;-)
-
- --- Take a look at ...
- Walter Sommergruber The Software Site
- email: wsog@softsite.co.at http://www.softsite.co.at/softsite/
-